package com.xzq.socket.bio.client;

import java.io.IOException;
import java.net.Socket;
import java.nio.charset.Charset;

/**
 * @Author xzq
 * @Description //TODO
 * @Date 2021/11/17 16:07
 * @Version 1.0.0
 **/
public class BioClient {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1", 9999);
            BioClientHandler bh = new BioClientHandler(socket, Charset.forName("gbk"));
            bh.start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
